import { createSlice } from "@reduxjs/toolkit";
import { RootState } from "..";
type Data = {
  show: boolean,
}
const initialState: Data = {
  show:false
}
export const adminManageSlice = createSlice({
  name: 'admin_manage',
  initialState,
  reducers: {
    setShow: (state, action) => {
      state.show = action.payload
    }
  },
}); 
// 查询阅卷列表
export const get_show_data = (state: RootState) => {
  return state.adminManage.show
}
export const { setShow } = adminManageSlice.actions;
export default adminManageSlice.reducer